package com.mes.report.controller;

import com.mes.report.service.StereoLibraryService;
import com.yy.base.page.Message;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.http.HttpServletRequest;

@Controller
@RequestMapping(value="/stereoLibrary")
public class StereoLibraryController {
	@Autowired
	private StereoLibraryService stereoLibraryService;

	/***
	 * PUR产线生产看板
	 * @param request
	 * @return
	 */
	@ResponseBody
	@RequestMapping(value="search",method= RequestMethod.POST)
	public Message fzProductPage(HttpServletRequest request){
		Message message = new Message();
		message.setData("fzjdata", stereoLibraryService.getReportPageData());
		message.setOkMessage("获取成功！");
		return message;
	}
}
